
package com.jf.cloud.api.multishop.feign;

import com.jf.cloud.common.feign.FeignInsideAuthConfig;
import com.jf.cloud.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zz
 * @date 2022/7/3716:42
 */
@FeignClient(value = "jfcloud-multishop",contextId = "shopWallet")
public interface ShopWalletFeignClient {

    /**
     * 获取店铺余额
     * @param shopId 店铺id
     * @return
     */
    @GetMapping(value = FeignInsideAuthConfig.FEIGN_URL_PREFIX + "/insider/shopWallet/getSettlementAmountByShopId")
    ServerResponseEntity<Long> getSettlementAmountByShopId(@RequestParam("shopId") Long shopId);

}
